//
// Created by wze-zero on 2024/7/11 011.
//
#include <iostream>

using namespace std;

int main() {
    int arr[6], min, temp;
    int len = sizeof(arr) / sizeof(int);
    for (int i = 0; i < len; ++i) {
        cin >> arr[i];
    }
    for (int i = 0; i < len; ++i) {
        for (int j = i; j < len; ++j) {
            min = i;
            if (arr[j] < arr[min]) {
                min = j;
            }
            temp = arr[i];
            arr[i] = arr[min];
            arr[min] = temp;
        }
    }
    for (int i = 0; i < len; ++i) {
        cout << arr[i] << " ";
    }
    cout << endl;
    return 0;
}